package com.hzsoft.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hzsoft.sys.entity.SysDic;
import com.hzsoft.sys.entity.SysDicKey;
import com.hzsoft.sys.mapper.SysDicMapper;
import com.hzsoft.sys.service.SysDicService;

@Service("sysDicService")
public class SysDicServiceImpl implements SysDicService{

	private SysDicMapper sysDicMapper;
	
	public SysDicMapper getSysDicMapper() {
		return sysDicMapper;
	}
	@Autowired
	public void setSysDicMapper(SysDicMapper sysDicMapper) {
		this.sysDicMapper = sysDicMapper;
	}
	public int deleteByPrimaryKey(SysDicKey key) {
		// TODO Auto-generated method stub
		return sysDicMapper.deleteByPrimaryKey(key);
	}
	public int insert(SysDic record) {
		// TODO Auto-generated method stub
		return sysDicMapper.insert(record);
	}
	public int insertSelective(SysDic record) {
		// TODO Auto-generated method stub
		return sysDicMapper.insertSelective(record);
	}
	public SysDic selectByPrimaryKey(SysDicKey key) {
		// TODO Auto-generated method stub
		return sysDicMapper.selectByPrimaryKey(key);
	}
	public int updateByPrimaryKeySelective(SysDic record) {
		// TODO Auto-generated method stub
		return sysDicMapper.updateByPrimaryKeySelective(record);
	}
	public int updateByPrimaryKey(SysDic record) {
		// TODO Auto-generated method stub
		return sysDicMapper.updateByPrimaryKey(record);
	}
	public List<SysDic> listPageByDicName(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sysDicMapper.listPageByDicName(map);
	}
	public SysDic getDicByCodeOrName(SysDic rec) {
		// TODO Auto-generated method stub
		return sysDicMapper.getDicByCodeOrName(rec);
	}
	public SysDic getCodeAndName(String dicCode) {
		// TODO Auto-generated method stub
		return sysDicMapper.getCodeAndName(dicCode);
	}
	public List<SysDic> listPageForDic(Map map) {
		// TODO Auto-generated method stub
		return sysDicMapper.listPageForDic(map);
	}
	public String getItemNameByValue(Map mm) {
		// TODO Auto-generated method stub
		return sysDicMapper.getItemNameByValue(mm);
	}
	public int deleteAll(SysDic result) {
		// TODO Auto-generated method stub
		return sysDicMapper.deleteAll(result);
	}
	public List<SysDic> selectLowerLevel(SysDic dic) {
		// TODO Auto-generated method stub
		return sysDicMapper.selectLowerLevel(dic);
	}

}
